
const conn = require('../data');

module.exports.msiIndex=(req,res)=>{
  console.log(555)
  res.json({
    code : "msiIndex"
})
}
module.exports.showAnpai = (req, res) => {
   data = [req.query.saishi, req.query.tianshu];
   console.log(data);
   conn.query('select * from arrangement where team_sort = ? and team_day = ?', data, (err, data) => {
      if (err) return console.log(err);
      console.log(data);
      res.json(data)
   })
}
module.exports.showHuodong = (req, res) => {
  conn.query('select * from active', (err, data) => {
     if (err) return console.log(err);
     res.json(data)
  })
}
module.exports.showZixun = (req, res) => {
  conn.query('select * from new', (err, data) => {
     if (err) return console.log(err);
     res.json(data)
  })
}
